package com.moyq5.permit.center.core.service.impl;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.moyq5.mvc.framework.dao.BasicService;
import com.moyq5.mvc.framework.dao.Dao;
import com.moyq5.permit.center.bean.entity.Charge;
import com.moyq5.permit.center.bean.search.Charge4Search;
import com.moyq5.permit.center.core.dao.ChargeDao;
import com.moyq5.permit.center.core.service.ChargeService;

/**
 * @author Moyq5's MvcMaker Tools
 */
@Service
public class ChargeServiceImpl extends BasicService<Charge, Charge4Search> implements ChargeService {
	
	@Autowired
	ChargeDao chargeDao;

	@Override
	protected Dao<Charge, Charge4Search> getDao() {
		return chargeDao;
	}

	@Override
	public BigDecimal sumAmount(Charge4Search charge4s, String searchWord) {
		return chargeDao.sumAmount(charge4s, searchWord);
	}

}

